// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import VueAxios from 'vue-axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Vuex from "vuex"
import store from "./store";

Vue.use(ElementUI)
Vue.use(VueAxios, axios)
Vue.use(Vuex);


Vue.config.productionTip = false
// 配置axios作用保存session的会话状态  解决在验证码输入正确的情况下 显示验证码错误
axios.defaults.withCredentials = true


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
